package com.wg.wgaiagent.config;

import org.springframework.ai.chat.memory.InMemoryChatMemoryRepository;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AppConfig {

    @Bean
    public InMemoryChatMemoryRepository chatMemoryRepository() {
        // 让 Spring 创建和管理这个实例
        return new InMemoryChatMemoryRepository();
    }
}